﻿#ifndef NETTOOLS_H
#define NETTOOLS_H

#include <QObject>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QNetworkAccessManager>
#include <QNetworkProxy>

class NetTools : public QObject
{
    Q_OBJECT
public:
    explicit NetTools(QObject *parent = nullptr);
    void bindCloudAccount(const QString &account,const QString &server,const QString &code);
    void testServer(const QString &);

signals:
    void bindCloudAccountResult(bool,QString msg="");
    void testServerResult(bool,QString msg="");

public slots:
    void bindCloudAccountFinished(QNetworkReply*);
    void testServerFinished(QNetworkReply*);
};

#endif // NETTOOLS_H
